/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-02-27
 * Time: 23:08
 */
public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        binarySearchTree.insert(5);
        binarySearchTree.insert(10);
        binarySearchTree.insert(19);
        binarySearchTree.insert(11);
        binarySearchTree.insert(0);
        binarySearchTree.insert(2);
        BinarySearchTree.TreeNode node= binarySearchTree.search(10);
        System.out.println(node.key);
        binarySearchTree.remove(19);

    }

}
